#基础镜像
FROM debian
#镜像创建者信息
MAINTAINER yintongjiang
#java 配置
ADD jdk /usr/java/jdk
ENV JAVA_HOME=/usr/java/jdk
ENV JAVA_BIN=/usr/java/jdk/bin
ENV CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
ENV PATH=$PATH:$JAVA_HOME/bin
#设置autotest的信息
WORKDIR /data/springboot
ADD target/autotest-1.0.jar /autotest.jar
EXPOSE 8080
CMD ["java","-jar","/autotest.jar"]java -jar myproject.jar --server.port = 9000